main: Keep the target widget alive
authorMatthias Clasen <mclasen@redhat.com>
Fri, 22 May 2020 16:25:23 +0000 (12:25 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Fri, 22 May 2020 16:25:23 +0000 (12:25 -0400)
commitdff5986ec209ee3758988d9ffbba17b831b58919
treeb3ff10ce5cf45f972feeb9c9b06bd1eece475c6f
parent028bccc18845f7de867cd98f3af3472dfc260084
main: Keep the target widget alive

We are passing the event to the tooltip handle_event
function at the very end. Unfortunately, the target_widget
may have already died at that point. We prevent that
by taking a ref during propagage_event, but the tooltip
code was outside of that. Keep a ref until the very
end ot prevent crashes.
gtk/gtkmain.c